package com.imooc.wiki.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @GetMapping("/hello")
    public String hello() {
        return "hello worl33d11112";
    }

    @PostMapping("/hello/post")
    public String helloPost(String name, Integer age) {
        return "hello world post，" + name + ": " +  age;
    }
}

